<?php
use yii\helpers\Url;
$this->title = $isComplete ? '会员资料' : '完善会员资料';
?>

<?php if ($isComplete) { ?>
    <!-- <div class="weui_cells_title waringColor">·请填写您的真实信息，有机会获得会员赠礼！</div> -->
<?php } ?>
    <!-- <form action="<?= Url::to(['member/profile']) ?>" method="get"> -->
        <div class="weui_cells weui_cells_form titleColor">
            <div class="weui_cell valid-box" id="">
                <div class="weui_cell_hd"><label class="weui_label"></label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <p id="name_valid" class="weui_input valid_input" ></p>
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">昵称</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input id="nickName" readonly="readonly" class="weui_input disabled" type="text" value="<?= isset($userInfo['last_name']) ? $userInfo['last_name'] : ''  ?>" style="border:none;" placeholder="请输入昵称">
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_hd"><label for="gender"  class="weui_label">性别</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input id="gender" readonly="readonly" class="weui_input disabled" type="text" value="<?= $userInfo['gender'] ?>" style="border:none;" placeholder="请输入昵称">
                </div>
            </div>

            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">手机</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input id='iphone' readonly="readonly" class="weui_input disabled" name="mobile" type="text" value="<?= isset($userInfo['mobile']) ? substr($userInfo['mobile'], 2) : '' ?>" style="border:none;"  placeholder="请输手机号码">
                </div>
            </div>

            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">生日</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input id="birthday" readonly="readonly" class="weui_input disabled" name="birthday" type="text" value="<?= isset($userInfo['birthday'])? $userInfo['birthday']: ''?>" style="border:none;" placeholder="请选择您的生日" value="1990/01/01">
                </div>
            </div>
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">电子邮箱</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input id="email" readonly="readonly" class="weui_input disabled" type="email" name="text" value="<?= isset($userInfo['email'])?$userInfo['email']:""?>" style="border:none;" placeholder="输入您常用的电子邮箱">
                </div>
            </div>

        </div>
        <div class="weui_btn_area" id="save">
            <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
            <input name="code" type="hidden" id="code" value="<?= isset($userInfo['code']) ? $userInfo['code'] : '' ?>">
            <!-- <input type="submit" class="weui_btn weui_btn_primary" href="Usermsg" value="修改"> -->
            <a type="submit" class="weui_btn weui_btn_primary" href="<?= Url::to(['member/profile']) ?>">修改</a>
        </div>
    <!-- </form> -->
</div>
